using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using System.Web.Mvc.Ajax;
using Animoso.Domain;
using Animoso.Domain.Data;

namespace Animoso.Web.Controllers
{
    public class IntroductionController : ApplicationController
    {
        private readonly IIntroductionRepository _introductionRepository;
        private readonly IRepository<Registration> _registrationRepository;

        public IntroductionController(IIntroductionRepository introductionRepository, IRepository<Registration> registrationRepository)
        {
            _introductionRepository = introductionRepository;
            _registrationRepository = registrationRepository;
        }

        public ActionResult Index()
        {
            return View();
        }

        public ActionResult Register()
        {
            Registration registration = new Registration();
            _registrationRepository.Add(registration);

            return View(registration);
        }
    }
}
